package com.ruoyix.weblog.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 分类业务对象 blog_sort
 *
 * @author ruoyi
 * @date 2024-08-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogSortBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sortName;

    /**
     * 分类描述
     */
    @NotBlank(message = "分类描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sortDescription;

    /**
     * 分类类型[0:导航栏分类，1:普通分类]
     */
    @NotNull(message = "分类类型[0:导航栏分类，1:普通分类]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sortType;

    /**
     * 导航栏分类优先级：数字小的在前面
     */
    @NotNull(message = "导航栏分类优先级：数字小的在前面不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long priority;

    /**
     * 首页样式类型
     */
    @NotBlank(message = "首页样式类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String homePageType;

    /**
     * 文章页面样式类型
     */
    @NotBlank(message = "文章页面样式类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String articlePageType;

    /**
     * 类型行数
     */
    @NotNull(message = "类型行数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sortRows;

    /**
     * 类型列数
     */
    @NotNull(message = "类型列数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sortColumns;

    /**
     * 文章行数
     */
    @NotNull(message = "文章行数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long articleRows;

    /**
     * 文章列数
     */
    @NotNull(message = "文章列数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long articleColumns;

    /**
     * 备注
     */
    private String remark;



}
